package com.server.admin;

import com.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminUserServer {
    List<User> selectAdminUser(@Param("username")String username,@Param("name")String name,@Param("limit")int limit,@Param("page")int page);
    int insertAdminUser(@Param("username") String username, @Param("password") String password, @Param("status") int status,
                        @Param("name") String name, @Param("bmmc") String bmmc, @Param("sszz") String sszz,
                        @Param("departmentId") int departmentId, @Param("userId") int userId,
                        @Param("register_time") String register_time);
    int getAutoId();

    int updateAdminUser(@Param("username") String username, @Param("password") String password, @Param("status") int status,
                        @Param("name") String name, @Param("bmmc") String bmmc, @Param("sszz") String sszz,
                        @Param("departmentId") int departmentId, @Param("userId") int userId,
                        @Param("update_time") String update_time);
    int repeatUsername(@Param("username") String username);
    List<User> selectUserId(@Param("userId") int userId);
    int deleteAdminUser(@Param("userId") int userId);
    int deleteAdminUserRole(@Param("userId") int userId);
    int InsertAdminUserRole(@Param("userId") int userId,@Param("roleId") int roleId);


}
